/**
 * Created by egret on 15-1-7.
 */
class LoadingView extends BaseEuiView{
    public constructor($controller:BaseController, $parent:eui.Group) {
        super($controller, $parent);
        this.skinName = "resource/skins/LoadingSkin.exml";
    }

    private pgBar: eui.Image;
    public txtMsg: eui.Label;

    public setProgress(current:number, total:number):void {
        var rate: number = Math.round((current / total) * 100);
        this.txtMsg.text = rate + "%";
        this.pgBar.width = 964 * (current / total);
    }
}